package com.sun.boostrap.feign;

import com.sun.boostrap.fallback.OrderServiceFallBackFactory;
import com.sun.entity.EnhanceProduct;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.io.IOException;
import java.util.List;

@FeignClient(value = "enhance-order",fallbackFactory = OrderServiceFallBackFactory.class)
public interface OrderServiceFeign {

    @GetMapping("/order/list")
    List<EnhanceProduct> selectOrderList() throws IOException;
}
